package com.web.mall.service;


import com.web.mall.document.EsGoods;
import com.web.mall.pojo.TbGoods;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface EsGoodsService {

    /**
     * 根据关键字条件查询
     * @param key
     * @param pageable
     * @return
     */
    public Page<EsGoods> queryEsItemByKey(String key, Pageable pageable);

    /**
     * 根据id查询商品详细
     * @param goods_id
     * @return
     */
    public EsGoods findEsItemById(Long goods_id);
}
